//
//  HSYBaseNavigationBar.m
//  HSY
//
//  Created by 陈浩 on 2017/4/1.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYBaseNavigationBar.h"

const static NSInteger kleftAreaTag = 10001;
//const static NSInteger kcenterAreaTag = 10002;
const static NSInteger krightAreaTag = 10003;

@implementation HSYBaseNavigationBar

-(void)layoutSubviews{
    [super layoutSubviews];

    for (UIView *vi in self.subviews) {
        if (vi.tag == kleftAreaTag) {
            vi.frame = CGRectMake(10, vi.frame.origin.y, vi.bounds.size.width, vi.bounds.size.height);
        }
        
        if (vi.tag == krightAreaTag) {
            vi.frame = CGRectMake(ScreenWidth() -vi.bounds.size.width-10, vi.frame.origin.y, vi.bounds.size.width, vi.bounds.size.height);
        }
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
